<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <title>bootstrap 按钮</title>
</head>
<body>
    <div class="container">
        <button type="button">按钮</button>
        <hr>
        <!-- bootstrap按钮，有8种颜色可以选择 -->
        <!-- 默认样式：填充按钮 -->
        <button type="button" class="btn btn-primary">Primary</button>
        <button type="button" class="btn btn-secondary">Secondary</button>
        <button type="button" class="btn btn-success">Success</button>
        <button type="button" class="btn btn-danger">Danger</button>
        <button type="button" class="btn btn-warning">Warning</button>
        <button type="button" class="btn btn-info">Info</button>
        <button type="button" class="btn btn-light">Light</button>
        <button type="button" class="btn btn-dark">Dark</button>
        <hr>
        <!-- 轮廓按钮：默认情况下不填充颜色，鼠标经过才填充颜色 -->
        <button type="button" class="btn btn-outline-primary">Primary</button>
        <button type="button" class="btn btn-outline-secondary">Secondary</button>
        <button type="button" class="btn btn-outline-success">Success</button>
        <button type="button" class="btn btn-outline-danger">Danger</button>
        <button type="button" class="btn btn-outline-warning">Warning</button>
        <button type="button" class="btn btn-outline-info">Info</button>
        <button type="button" class="btn btn-outline-light">Light</button>
        <button type="button" class="btn btn-outline-dark">Dark</button>
        <hr>
        <!-- 调整按钮尺寸 -->
        <button type="button" class="btn btn-info btn-lg">大型按钮</button>
        <button type="button" class="btn btn-info">默认按钮</button>
        <button type="button" class="btn btn-info btn-sm">小型按钮</button>
        <hr>
        <!-- 调整按钮的宽度：将按钮转换成块元素，通过父容器的宽度来控制 -->
        <div class="row">
            <div class="col-3">
                <!-- .btn-block将按钮转换为块元素，填充满整个父容器 -->
                <button type="button" class="btn btn-danger btn-block">Danger</button>
            </div>
            <div class="col-6">
                <button type="button" class="btn btn-danger btn-block">Danger</button>
            </div>
            <div class="col-3">
                <button type="button" class="btn btn-danger btn-block">Danger</button>
            </div>
        </div>
        <hr>
        <!-- 活跃按钮 -->
        <button type="button" class="btn btn-primary active">活跃按钮</button>
        <!-- 禁用按钮 -->
        <button type="button" class="btn btn-primary disabled">禁用按钮</button>
        <a href="../images/1.png" class="btn btn-primary">使用超链接实现的按钮</a>
    </div>
    
</body>
</html>